
declare module Microsoft.Office.WebExtension {

    /** Represents the document file associated with an app for Office. */
    export class File {

        /** Gets the document file size in bytes. */
        size: number;

        /** Gets the number of slices into which the file is divided. */
        sliceCount: number;

        /** Closes the document file. */
        closeAsync(callback: (result: AsyncResult) => void);

        /** Returns the specified slice. */
        getSliceAsync(sliceIndex: number, callback: (result: AsyncResult) => void);
    }
}